﻿using System;
using System.Collections.Generic;
using System.Text;
using Slf;

namespace Slf.Samples.SingleLoggerFactory
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.ForegroundColor = ConsoleColor.Green;
      Console.Write("This sample demonstrates the usage of SingleLoggerFactory, a factory which returns ");
      Console.WriteLine("a logger of a specific type as detailed in the factory-data XML configuration.\n\n");
      Console.ResetColor();


      ILogger logger = LoggerService.GetLogger("logger1");
      logger.Debug("Message logged to logger1 - configured to be a DebugLogger");

      logger = LoggerService.GetLogger("logger2");
      logger.Debug("Message logged to logger2 - configured to be a ConsoleLogger");

      Console.ReadLine();
    }
  }
}
